package com.tuanzi.loan.business.repository.family.custom;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.business.entity.family.ActivityModel;
import com.tuanzi.loan.generated.jooq.loan.tables.records.ActivityModelRecord;
import com.tuanzi.loan.vo.request.family.ActivityModelSearchRequest;
import com.tuanzi.loan.vo.response.family.ActivityModelSearchResponse;
import com.tuanzi.loan.vo.view.family.ActivityModelView;

public interface ActivityModelRepositoryCustom {

	Page<ActivityModelSearchResponse> list(ActivityModelSearchRequest searchRequest, Pageable pageable);

	ActivityModel findOneById(Long id);

	ActivityModelRecord saveOrUpdate(ActivityModelView view);

	ActivityModel findOneByModelName(String modelName);

	List<ActivityModel> findAllActivityModel();

	void deleteModel(Long id);
}
